import { Component } from 'vue'

export interface RoutesDataItem {
  aliasName?: string
  name?: string
  path: string
  title: string
  icon?: string
  selectLeftMenu?: string
  component?: Component
  children?: RoutesDataItem[]
}

export type RoutesDatallChildren = RoutesDataItem[]
export interface CrumbItem {
  path?: string
  title: string
  name: string
}

export type CrumbType = Array<CrumbItem>

export type RouterType = Array<RouterItem>

export interface PathMapItem {
  [prop: string]: any
}

export interface RouterItem {
  name?: string
  path: string
  title: string
  isTagView?: boolean
  next?: RouterType
  [prop: string]: any
}
